const mongoose = require('mongoose');
const {Schema} = mongoose;

// github 认证之后得到的信息 这个id会绑定在用户的表中 通过这个id进行查找
const githubSchema = new Schema({
    avatar_url: String,
    id: Number,
    name: String,
    originalData: {
        type: Schema.Types.Mixed
    },
});

const github = mongoose.model('Github', githubSchema, 'Githubs');
module.exports = github